package com.boot.webflux.security.example2.module.service;


import com.boot.webflux.security.example2.module.dao.SysRoleRepository;
import com.boot.webflux.security.example2.module.entity.SysRole;
import lombok.AllArgsConstructor;
import org.springframework.data.r2dbc.core.R2dbcEntityTemplate;
import org.springframework.stereotype.Service;
import reactor.core.publisher.Flux;

import java.util.List;

@Service
@AllArgsConstructor
public class SysRoleService {
    private final R2dbcEntityTemplate template;
    private SysRoleRepository sysRoleRepository;
    public Flux<SysRole> findAll(){
        return sysRoleRepository.findAll();
    }

}
